<template>
  <div class="seconds-kill">
    <div class="flex a-center j-between title-box">
      <div class="flex a-center">
        <slot name="title"></slot>
        <slot name="countdown"></slot>
      </div>
      <slot name="more"></slot>
    </div>
    <div class="media-content flex a-center">
      <slot name="media-content"></slot>
    </div>
  </div>
</template>

<script>
export default {
  name: "SecondsKill",
};
</script>

<style scoped>
.seconds-kill {
  margin-top: 10px;
}
.seconds-kill /deep/ .title-box {
  padding: 5px 0;
  background: url("~assets/images/home/skbf.png") no-repeat;
  background-size: contain;
}
.countdown {
  color: #fa2c19;
  font-size: 14px;
  margin-left: 10px;
}
.countdown /deep/ span {
  padding: 0 2px;
  width: 0.75rem;
  color: #fff;
  background-image: linear-gradient(-140deg, #fa2c19, #ffb3ac);
  border-radius: 0.2rem;
  text-align: center;
  font-weight: 400;
}
.seconds-kill /deep/ .more-btn {
  font-size: 13px;
  color: #fa2c19;
}
.seconds-kill /deep/ .more-btn::after {
  content: ">";
  display: inline-block;
  background-color: #fa2c19;
  border-radius: 50%;
  padding: 0px 4px;
  color: #fff;
  font-size: 12px;
  line-height: 17px;
  vertical-align: middle;
  margin-left: 3px;
  box-sizing: border-box;
}

.media-content::-webkit-scrollbar {
  display: none;
  background: none;
}
.media-content {
  flex-wrap: nowrap;
  overflow-y: hidden;
}
.media-content /deep/ img {
  width: 60px;
  height: 60px;
}
.media-content /deep/ .text {
  font-size: 12px;
  text-align: center;
  color: #fa2c19;
}
</style>